﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000113 RID: 275
	public class TRedshiftDropUser : TCustomSqlStatement
	{
		// Token: 0x17000195 RID: 405
		// (get) Token: 0x060008FA RID: 2298 RVA: 0x00302C49 File Offset: 0x00300E49
		// (set) Token: 0x060008FB RID: 2299 RVA: 0x00302C51 File Offset: 0x00300E51
		public virtual TObjectNameList UserNameList
		{
			get
			{
				return this.userNameList;
			}
			set
			{
				this.userNameList = value;
			}
		}

		// Token: 0x060008FC RID: 2300 RVA: 0x00302C5A File Offset: 0x00300E5A
		public TRedshiftDropUser(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftDropUser;
		}

		// Token: 0x060008FD RID: 2301 RVA: 0x00302C70 File Offset: 0x00300E70
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.userNameList = (TObjectNameList)tdummy.list1;
			return 0;
		}

		// Token: 0x060008FE RID: 2302 RVA: 0x00302CAD File Offset: 0x00300EAD
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008FF RID: 2303 RVA: 0x00302CBD File Offset: 0x00300EBD
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001235 RID: 4661
		private TObjectNameList userNameList;
	}
}
